﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetNuke.Entities.Content;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Tabs;

namespace iLangl.Customer.DNN
{
	public class VersionManager
	{
		public static String GetVersion(ModuleInfo mi)
		{
			if (mi == null)
				return String.Empty;

			return mi.DesktopModule.Version;
		}

		public static String GetVersion(TabInfo ti)
		{
			if (ti == null)
				return String.Empty;

			return ti.LocalizedVersionGuid.ToString();
		}
	}
}